package com.star.sso.repository.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 菜单权限表(SysMenu)SysMenu  实体类
 *
 * @author zhouhengzhe
 * @since 2024-01-08 23:53:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@TableName("sys_menu")
public class SysMenuPO extends BaseSsoPO {

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "前端URL")
    private String path;

    @Schema(description = "父菜单ID")
    private String parentId;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "排序值")
    private Integer sort;

    /**
     * @see com.star.sso.contract.enums.MenuTypeEnum
     */
    @Schema(description = "菜单类型 (1目录 2菜单 3按钮)")
    private Integer type;

    @Schema(description = "授权标识")
    private String perms;
}
